#!/bin/bash
ec2_public_hostname=`curl http://169.254.169.254/latest/meta-data/public-hostname -s`
echo
if [ -n "$ec2_public_hostname" ]; then
  echo "  Alfresco is running on this host. To connect to Alfresco Share, point your "
  echo "  web browser at the following location"
  echo
  echo "    http://$ec2_public_hostname"
else
  echo "  Could not determine the public hostname of this machine. Please check the "
  echo "  networking configuration of your VM."
fi
echo
